<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/20
 * Time: 16:29
 */
$useid = $route->restfulParams['userid'];

if(!$route->restfulParams['count']){
    $sql = "SELECT * FROM `art_oa_attendance_application` WHERE `oaa_copy_user`IN (".$useid.")";
}else{
    // and oaa_status = 2
    $sql = "SELECT COUNT(*) as num FROM `art_oa_attendance_application` WHERE `oaa_copy_user`IN (".$useid.")";
}

$re=$db->mysqlDB->query($sql);

$rs = array("data" => $re);
//返回成功结果
$response->responseData(true, $rs);